package com.hk.service.order;

import com.hk.annotation.RecordOperate;
import com.hk.domain.entity.SaveOrder;
import com.hk.service.order.impl.*;
import com.hk.domain.entity.UpdateOrder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author: dpb
 * @Description TODO
 * @date: 2022/12/6 23:24
 * @Version 1.0
 */
@Slf4j
@Service
public class OrderService {

    @RecordOperate(desc = "保存订单", convert = SaveOrderConvert.class)
    public Boolean saveOrder(SaveOrder saveOrder) {
        System.out.println("save order, orderId：" + saveOrder.getId());
        return true;
    }

    @RecordOperate(desc = "更新订单", convert = UpdateOrderConvert.class)
    public Boolean updateOrder(UpdateOrder updateOrder) {
        System.out.println("update order, orderId：" + updateOrder.getOrderId());
        return true;
    }

}
